<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue入门</title>
    <script src="./vue.js"></script>
</head>
<body>

<!--挂载点、模板、实例之间的关系-->
    <div id="root">
        <h1>Hello {{msg}}</h1>
        <h2>{{number}}</h2>
        <h3 v-text="number"></h3>
<!--        v-text 会对内容做一次转义，页面上会原样输出-->
        <div v-text="content"></div>
<!--        v-html会输出html内容-->
        <div v-html="content"></div>
    </div>

<script>
    new Vue(
        {
            el:"#root",
            // template: '<h1>Hello</h1>',
            data:{
                msg: "girl",
                number: 3,
                content:"<h1>Hello</h1>"
            }
        }
    )
</script>
</body>
</html>